package demo1;

public class OutClass {
    public int data1 = 1;
    public int data2 = 2;
    public static int data  = 6;

    //静态内部类
    static class InnerClass{
        public int data3 = 3;
        public int data4 = 5;

        public void test(){
            //要使用data1，需要创建对象
            OutClass outClass = new OutClass();
            System.out.println(outClass.data1);
            System.out.println(data3);
        }
    }
}
